Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

changes made to publish to maven #11147

Merged
merged 4 commits into from
Jun 7, 2018
Merged

Conversation

nswamy
Copy link
Member

@nswamy nswamy commented Jun 5, 2018

Description

Changes that were made to publish the packages to Maven, some of the changes were already committed by the Maven Release plugin on my behalf - I have disabled this functionality. Currently it will only create a tag on the local repo when you run release-prepare.

In brief.

  • We will build the MXNet backend during the compilation of init package only for apache-release profile.
  • Disabled automatically committing to Git and instead only locally commit.
  • Reduce the number of packages to be published to 3 platform specific platforms.
  • Flatten pom files during the build phase -- otherwise the package cannot be used and we need to publish POM files.

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
  • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
  • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
  • Code is well-documented:
  • For user-facing API changes, API doc string has been updated.
  • For new C++ functions in header files, their functionalities and arguments are documented.
  • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
  • Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

  • Feature1, tests, (and when applicable, API doc)
  • Feature2, tests, (and when applicable, API doc)

Comments

  • If this change is a backward incompatible change, why must this change be made.
  • Interesting edge cases to note here

@nswamy nswamy requested review from szha and yzhliu as code owners June 5, 2018 06:42
@nswamy
Copy link
Member Author

nswamy commented Jun 7, 2018

@yzhliu @lanking520 could you please review this? Its blocking 1.2.1 release

if [[ $PLATFORM == "osx-x86_64-cpu" ]];
then
echo "Building MXNet Backend on MAC OS"
echo "ADD_CFLAGS += -I/usr/local/opt/opencv@2/include" >> ./config.mk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to fix the opencv@2 here. Currently MXNet Python package use different openCV version

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, lets fix this in the next iteration during release. I don't know at the moment what will work.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the issue to track #1119

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

During release?

</scm>

<properties>
<scala.version>2.11.8</scala.version>
<scala.binary.version>2.11</scala.binary.version>
<build.platform />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we have it here, it seemed empty?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is passed from the Makefile. ie., to say no default value

make -j$(cat /proc/cpuinfo | awk '/^processor/{print $3}' | tail -1)
echo "Building MXNet Backend on Linux GPU"
else
echo "MY ALIEN OVERLOADS HAVE NOT TOLD WHAT TO DO FOR INVALID INPUT !!!"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@lanking520
Copy link
Member

Thanks for your input, let's keep the issue tracked and solve that. @nswamy LGTM + 1

@@ -30,12 +30,13 @@
<connection>scm:git:git@github.com:apache/incubator-mxnet.git</connection>
<developerConnection>scm:git:git@github.com:apache/incubator-mxnet.git</developerConnection>
<url>https://github.com/apache/incubator-mxnet</url>
<tag>mxnet-parent_2.11-1.2.0</tag>
<tag>HEAD</tag>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intended to point to the HEAD (master)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, It has to create a new tag every time.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not very familiar with that setup, so please bare with me. What exactly is this supposed to do? I'd expect it to point to a certain branch, but this one would point to the master. What's the use-case here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its just telling what tagName should be used when releasing. when HEAD it uses the name of the artifact defined in the pom file + version. We are not using this anyway, like I said on the email I have disabled tagging on the remote repo

Copy link
Contributor

@marcoabreu marcoabreu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although I don't know about @lanking520 s comments

@marcoabreu marcoabreu merged commit 60dff17 into apache:v1.2.0 Jun 7, 2018
@lanking520
Copy link
Member

@marcoabreu this one #11193

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants